﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace bookmeetingroom.Models
{
    public class MeetingRoomModel
    {
        public int Id { get; set; }

        [Required]
        public string Name { get; set; }

        [Range(0, 10000, ErrorMessage = "每小时费用应该在0-10000之间.")]
        public int ChargePerHour { get; set; }

        public string PictureUrl { get; set; }

        [Range(0, 10000, ErrorMessage = "容纳人数应该在0-10000之间.")]
        public string Capacity { get; set; }
        public int? BuildingId { get; set; }
        public string OpenTime { get; set; }
        public string CloseTime { get; set; }
        public bool AvaliableWeekends { get; set; }
        public int ShowOrder { get; set; }

        public int[] Facilities { get; set; }
    }
}
